package com.seaboxdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 危化品车辆预警数据
 * Warning data of dangerous chemical vehicles
 *
 * @author leo
 * @date 2020-07-06 15:20:44
 */
@Data
@TableName("dpyjglj_whpjg.whp_warning")
public class Warning implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    private String id;

    private Double speed;

    private String warningType;

    private String location;

    private String lon;

    private String content;

    private Double limitSpeed;

    private String carCode;

    private String lat;

    private Date warningTime;

    private Date cjsj;

    public boolean equals(Object o) {
        if (o == null || !(o instanceof Warning)) {
            return false;
        } else {
            Warning warning = (Warning) o;
            if (warning.getId().equals(this.getId()) && warning.getWarningTime().equals(this.getWarningTime())) {
                return true;
            }
            return false;
        }
    }
}
